/*
This file is part of SmartShopper

SmartShopper is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SmartShopper is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with vlc-remote.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.1
//import Qt.labs.components 1.1
import com.nokia.meego 1.0

//Page {
//    id: sheetPage



Sheet {
    id: sheet
    anchors.topMargin: 10

//    visualParent: pageStack

//    signal closing()

    acceptButtonText: qsTr("Save")
    rejectButtonText: qsTr("Cancel")
    //    rejectButton.enabled: !disableCancelButton.checked

//    visualParent: emptyPage

    title: Text {
//        width: parent.width;
        anchors.centerIn: parent
        text: qsTr("Settings");
        horizontalAlignment: Text.AlignHCenter;
        font.pointSize: 20
        color : appWindow.textColor
    }
    //        BusyIndicator {
    //        anchors.centerIn: parent; running: sheet.status == DialogStatus.Open;
    //    }

    content: Flickable {
        anchors.fill: parent
        anchors.leftMargin: 10
        anchors.topMargin: 10
        contentWidth: col2.width
        contentHeight: col2.height
        flickableDirection: Flickable.VerticalFlick

        Column {
            id: col2
            anchors.top: parent.top
            spacing: 10
            Text {text: "Theme style:"; font.pointSize: 24}
            ButtonRow {
                id: themeButtons
                checkedButton: themeInvert ? btnDark : btnLight
                Button { id: btnLight; text: "Light"; onClicked: theme.inverted = false }
                Button { id: btnDark; text: "Dark"; onClicked: theme.inverted = true }
            }
        }
    }

    onAccepted: { themeInvert = theme.inverted; }
//        pageStack.pop()
    onRejected: { theme.inverted = themeInvert; themeButtons.checkedButton = themeInvert ? btnDark : btnLight }
//        pageStack.pop()

//    Component.onCompleted: sheet.open()
}

//}
